import pinia from '@/store'
import useLayoutSettingStore from '@/store/modules/setting'
let layoutSettingStore = useLayoutSettingStore(pinia)
// 设置系统缩放比，适配各分辨率
export function refreshScale() {
  //当前屏幕宽高
  let baseWidth = document.documentElement.clientWidth
  let baseHeight = document.documentElement.clientHeight
  // 最大时即正常时宽高
  let MaxHeight = 1080
  let MaxWidth = 1920
  // console.log(baseWidth,baseHeight); // 1920 937 缩放比zoomRatio
  layoutSettingStore.zoomRatio = baseHeight / MaxHeight
  layoutSettingStore.zoomRatioW = baseWidth / MaxWidth
}
